//    C 50-60分
function grade(score) {
  let value = {
    grade: "",
    gradeadd: "",
    gradeText: ""
  }
  if (score >= 95 && score <= 100) {
    value.grade = "A档";
    value.gradeadd = "A+";
    value.gradeText = "perfect 完美的、理想的，属杰出绩效成绩";
  } else if (score >= 90 && score < 95) {
    value.grade = "A档";
    value.gradeadd = "A";
    value.gradeText = "excellent 卓越的、超出预期的"
  } else if (score >= 80 && score < 90) {
    value.grade = "B档";
    value.gradeadd = "B+";
    value.gradeText = "good 满意的、胜任的"
  } else if (score >= 70 && score < 80) {
    value.grade = "B档";
    value.gradeadd = "B";
    value.gradeText = "enough够用的、刚好满足的"
  } else if (score >= 60 && score < 70) {
    value.grade = "C档";
    value.gradeadd = "C+";
    value.gradeText = ""
  } else if (score < 60) {
    value.grade = "C档";
    value.gradeadd = "C";
    value.gradeText = ""
  }
  return value;
}

export {
  grade
}
